<ng-container *ngIf="showAuditSubmitButton">




  <!-- 审核 -->
  <div class="bg auditManage" *ngIf="tagData.name === 'auditSubmitChooseTag'">
    <div class="check-all" appDebounceClick (debounceClick)="allClick()">
      <i class="check" [ngClass]="{'checked': checked}"></i>
      {{tagData.data.checked?.text}}
    </div>
    <div class="pass-bg">
      <div class="no-pass 1" *ngIf="tagData.data.submitButton?.label"
        [ngStyle]="tagData.data.submitButton.submit.cssStyle | styleFilter"
        appDebounceClick (debounceClick)="noPassClick(tagData.data.submitButton.submit)">{{tagData.data.submitButton.label}}</div>
      <div class="pass 1" *ngIf="tagData.data.linkButton?.label"
        [ngStyle]="tagData.data.linkButton.link.cssStyle | styleFilter"
        appDebounceClick (debounceClick)="passClick(tagData.data.linkButton.link)">
        {{tagData.data.linkButton.label}}</div>
    </div>
  </div>

  <!--商品管理-->

  <div class="bg shopGoodsManage" *ngIf="setCustomBoxVisibility==='true'&&tagData.name === 'auditSubmitChooseTag_shopGoodsManage'" [ngStyle]="tagData.data.cssStyle | styleFilter">
    <div class="check-all" appDebounceClick (debounceClick)="allClick()">
      <i class="check" [ngClass]="{'checked': checked}"></i>
      {{tagData.data.checked?.text}}
    </div>
    <div class="pass-bg">
      <div class="no-pass 2" *ngIf="tagData.data.submitButton?.label"
        [ngStyle]="tagData.data.submitButton.submit.cssStyle | styleFilter"
        appDebounceClick (debounceClick)="noPassClick(tagData.data.submitButton.submit)">{{tagData.data.submitButton.label}}</div>
      <div class="pass 2" *ngIf="tagData.data.linkButton?.label"
        [ngStyle]="tagData.data.linkButton.link.cssStyle | styleFilter"
        appDebounceClick (debounceClick)="passClick(tagData.data.linkButton.link)">
        {{tagData.data.linkButton.label}}</div>
    </div>
  </div>


  <!--店铺管理-->
  <div class="bg shopInfoManage" *ngIf="tagData.name === 'auditSubmitChooseTag_shopInfoManage'">

    <span class="submit-button" *ngIf="tagData.data.submitButton?.label"
      [ngStyle]="tagData.data.submitButton?.submit?.cssStyle|styleFilter"
      appDebounceClick (debounceClick)="addAction(tagData.data.submitButton?.submit)">{{tagData.data.submitButton?.label}}</span>
  </div>

  <!-- 派单 地址管理 -->
  <div class="bg addressManage" *ngIf="tagData.name === 'auditSubmitChooseTag_sendSingle'">
    <div class="pass-bg">
      <div class="no-pass 3" [ngStyle]="tagData.data.submitButton.submit.cssStyle | styleFilter"
        *ngIf="tagData.data.submitButton?.label" appDebounceClick (debounceClick)="noPassClick(tagData.data.submitButton.submit)">
        {{tagData.data.submitButton.label}}</div>
      <div class="pass 1" [ngStyle]="tagData.data.linkButton.link.cssStyle | styleFilter"
        *ngIf="tagData.data.linkButton?.label" appDebounceClick (debounceClick)="passClick(tagData.data.linkButton.link,true)">
        {{tagData.data.linkButton.label}}</div>
    </div>
  </div>
  <!-- 购物车 -->
  <div class="bg carManage" *ngIf="tagData.name === 'auditSubmitChooseTag_2' || tagData.name === 'auditSubmitChooseTag_order'"
    style="height: 4rem;" [ngStyle]="tagData.data.bgCssStyle?.cssStyle | styleFilter">
    <div class="check-all" appDebounceClick (debounceClick)="allClick()" *ngIf="tagData.data.checked?.text">
      <i class="check" [ngClass]="{'checked': checked}"></i>
      {{tagData.data.checked?.text}}
    </div>
    <!-- 商品数量 -->
    <div class="check-all" appDebounceClick (debounceClick)="allClick()" *ngIf="tagData.data.count?.text"
      [ngStyle]="tagData.data.count?.cssStyle | styleFilter">
      {{tagData.data.count.text}}
    </div>
    <div class="total-bg" *ngIf="!edit" [ngStyle]="tagData.data.totalBgCssStyle | styleFilter">
      <!-- | currency:'CAD':'symbol-narrow':'4.2-2' -->
      <p class="sale-total-bg" [ngStyle]="tagData.data.bgCssStyle?.labelCssStyle | styleFilter"><span
          *ngIf="tagData.data.firstRowLeft?.label"
          [ngStyle]="tagData.data.firstRowLeft?.cssStyle | styleFilter">{{tagData.data.firstRowLeft.label}}</span>

        <ng-container *ngIf="appGlobalService.orderRealPayAmount > 0 && tagData.data.secondRowRight === undefined; else elseRealyPayAmount">
          <span class="sale-total-digits 1" [ngStyle]="tagData.data.firstRowRightSmall?.cssStyle | styleFilter">￥</span>
          <span class="sale-total 1" [ngStyle]="tagData.data.firstRowRight?.cssStyle | styleFilter">
            {{getInterger(appGlobalService.orderRealPayAmount)
            | currency:'CNY':'':'1.0-0'}}
          </span>
          <span class="sale-total-digits 2" [ngStyle]="tagData.data.firstRowRightSmall?.cssStyle | styleFilter">
            {{(appGlobalService.orderRealPayAmount - 0 | currency:'CNY':'':'0.2-2') + '' | slice:-3}}
          </span>
        </ng-container>
        <ng-template #elseRealyPayAmount>
          <span class="sale-total-digits 3" [ngStyle]="tagData.data.firstRowRightSmall?.unitCssStyle | styleFilter">￥</span>
          <span class="sale-total 2" *ngIf="tagData.data?.firstRowRight?.label !== undefined"
            [ngStyle]="tagData.data.firstRowRight?.cssStyle | styleFilter">{{getInterger(tagData.data.firstRowRight.label)
            | currency:'CNY':'':'1.0-0'}}</span>
          <span *ngIf="tagData.data.firstRowLeft?.label" class="sale-total-digits 4"
            [ngStyle]="tagData.data.firstRowRightSmall?.cssStyle | styleFilter">
            {{(tagData.data.firstRowRight.label - 0 | currency:'CNY':'':'0.2-2') + '' | slice:-3}}
          </span>
        </ng-template>
      </p>
      <!-- 修改客户订单 新增 -->
      <p class="sale-total-bg" [ngStyle]="tagData.data.bgCssStyle?.labelCssStyle | styleFilter">
        <span *ngIf="tagData.data.firstRowLeft?.label1"
          [ngStyle]="tagData.data.firstRowLeft?.cssStyle | styleFilter">{{tagData.data.firstRowLeft.label1}}
        </span>
        <span *ngIf="tagData.data.unit" [ngStyle]="tagData.data.unit?.cssStyle | styleFilter">
          {{tagData.data.unit?.label}}
        </span>
        <span class="sale-total 2 2" *ngIf="tagData.data.firstRowLeft?.label1"
          [ngStyle]="tagData.data.firstRowRight?.cssStyle | styleFilter">
          {{getInterger(tagData.data.firstRowRight.label1 - 0 )| currency:'CNY':'':'1.0-0'}}
        </span>
        <!-- 修改客户订单 新增 小数点后 数字 -->
        <span *ngIf="tagData.data.firstRowLeft?.label1" class="sale-total-digits 5"
          style="color: #FF3A33;font-weight: bold;">
          {{(tagData.data.firstRowRight.label1 - 0 | currency:'CNY':'':'0.2-2') + '' | slice:-3}}</span>
      </p>
      <p class="o-total-bg" *ngIf="tagData.data.secondRowLeft?.label ">
        <span *ngIf="tagData.data.secondRowLeft?.label"
          [ngStyle]="tagData.data.secondRowLeft?.cssStyle | styleFilter">{{tagData.data.secondRowLeft.label}}</span>

        <span *ngIf="isOpen && tagData.data.secondRowRight" class="o-total"
          [ngStyle]="tagData.data.secondRowRight?.cssStyle | styleFilter">{{tagData.data.secondRowRight.label - 0 |
          currency:'CNY':'symbol-narrow'}}</span>
        <span *ngIf="!isOpen && tagData.data.secondRowRight?.label" class="o-total"
          [ngStyle]="tagData.data.secondRowRight?.cssStyle | styleFilter">***</span>

        <!-- 修改客户订单 新增 -->
        <span *ngIf="tagData.data.secondRowRight?.label1" class="o-total"
          [ngStyle]="tagData.data.secondRowRight?.cssStyle | styleFilter">{{tagData.data.secondRowRight.label1 - 0 |
          currency:'CNY':'symbol-narrow'}}</span>
      </p>
    </div>
    <div class="pass-bg" style="line-height: 4rem;">
      <div class="no-pass 4" [ngClass]="{'newClass': tagData.data.linkButton?.submit?.newClass}"
        [ngStyle]="tagData.data.submitButton2.submit.cssStyle | styleFilter"
        *ngIf="tagData.data.submitButton2?.label && (edit ||  tagData.name === 'auditSubmitChooseTag_order')"
        appDebounceClick (debounceClick)="submitButton2Click(tagData.data.submitButton2.submit, $event)">{{tagData.data.submitButton2.label}}
      </div>
      <div class="no-pass 5" [ngClass]="{'newClass': tagData.data.linkButton?.submit?.newClass}"
        [ngStyle]="tagData.data.submitButton.submit.cssStyle | styleFilter"
        *ngIf="tagData.data.submitButton?.label && (edit ||  tagData.name === 'auditSubmitChooseTag_order')"
        appDebounceClick (debounceClick)="noPassClick(tagData.data.submitButton.submit, $event)">{{tagData.data.submitButton.label}}</div>
      <div class="pass 2" [ngClass]="{'newClass': tagData.data.linkButton?.link?.newClass}"
        [ngStyle]="tagData.data.linkButton.link.cssStyle | styleFilter" *ngIf="tagData.data.linkButton?.label && !edit"
        appDebounceClick (debounceClick)="passClick(tagData.data.linkButton.link,tagData.name === 'auditSubmitChooseTag_order')">
        {{tagData.data.linkButton.label}}</div>

      <!-- 使用link中的cssStyle 会与弹窗冲突 新增类型-->
      <div class="pass 4" [ngClass]="{'newClass': tagData.data.linkButton2?.link?.newClass}"
        [ngStyle]="tagData.data.linkButton2.link.btnCssStyle | styleFilter"
        *ngIf="tagData.data.linkButton2?.label && !edit"
        appDebounceClick (debounceClick)="passClick(tagData.data.linkButton2.link,tagData.name === 'auditSubmitChooseTag_order')">
        {{tagData.data.linkButton2.label}}</div>
      <div class="pass 5" [ngClass]="{'newClass': tagData.data.linkButton3?.link?.newClass}"
        [ngStyle]="tagData.data.linkButton3.link.btnCssStyle | styleFilter"
        *ngIf="tagData.data.linkButton3?.label && !edit"
        appDebounceClick (debounceClick)="passClick(tagData.data.linkButton3.link,tagData.name === 'auditSubmitChooseTag_order')">
        {{tagData.data.linkButton3.label}}</div>
    </div>
  </div>
</ng-container> 